<template>
  <div>
    <h2>Parent</h2>
    <Child @click:btn='gc.myMethod()'>
      <GrandChild ref="grandchild" />
    </Child>
  </div>
</template>
<script setup>
import { useTemplateRef } from 'vue';
import GrandChild from './GrandChild.vue';
import Child from './Child.vue';

const gc = useTemplateRef('grandchild')
</script>
<style lang="">

</style>